{smcl}
{txt}{sf}{ul off}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\J.PARK\Dropbox\Discrimination Project_for me\Organizational Diversity\2023 Version_Merging\FINAL\CFA_2017.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 8 Aug 2024, 13:24:02
{txt}
{com}. 
. import delimited "C:\Users\J.PARK\Dropbox\DISCRIMINATION PROJECT\FEVS\FEVS_2010-2019\FEVS_2017_PRDF.csv"
{res}{txt}(encoding automatically selected: ISO-8859-2)
{res}{text}(80 vars, 486,105 obs)

{com}. drop if q17=="X"
{txt}(19,717 observations deleted)

{com}. drop if q17==""
{txt}(3,509 observations deleted)

{com}. drop if q37=="X"
{txt}(20,191 observations deleted)

{com}. drop if q37==""
{txt}(10,651 observations deleted)

{com}. drop if q38=="X"
{txt}(18,180 observations deleted)

{com}. drop if q38==""
{txt}(3,801 observations deleted)

{com}. drop if q15=="X"
{txt}(3,576 observations deleted)

{com}. drop if q15==""
{txt}(1,224 observations deleted)

{com}. drop if q22=="X"
{txt}(16,513 observations deleted)

{com}. drop if q22==""
{txt}(2,135 observations deleted)

{com}. drop if q25=="X"
{txt}(9,487 observations deleted)

{com}. drop if q25==""
{txt}(2,258 observations deleted)

{com}. drop if q33=="X"
{txt}(8,074 observations deleted)

{com}. drop if q33==""
{txt}(2,780 observations deleted)

{com}. drop if q48==.
{txt}(2,750 observations deleted)

{com}. drop if q49==.
{txt}(1,325 observations deleted)

{com}. destring q17, replace
{txt}q17: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q37, replace
{txt}q37: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q38, replace
{txt}q38: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q15, replace
{txt}q15: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q22, replace
{txt}q22: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q25, replace
{txt}q25: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q33, replace
{txt}q33: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. drop if q55=="X"
{txt}(7,040 observations deleted)

{com}. drop if q55==""
{txt}(4,878 observations deleted)

{com}. drop if q45=="X"
{txt}(8,607 observations deleted)

{com}. drop if q45==""
{txt}(1,694 observations deleted)

{com}. drop if q34=="X"
{txt}(5,437 observations deleted)

{com}. drop if q34==""
{txt}(1,374 observations deleted)

{com}. destring q55, replace
{txt}q55: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q45, replace
{txt}q45: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q34, replace
{txt}q34: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. drop if dsuper=="X"
{txt}(0 observations deleted)

{com}. drop if dsuper==""
{txt}(42,401 observations deleted)

{com}. drop if dsex=="X"
{txt}(0 observations deleted)

{com}. drop if dsex==""
{txt}(5,996 observations deleted)

{com}. drop if dminority=="X"
{txt}(0 observations deleted)

{com}. drop if dminority==""
{txt}(4,966 observations deleted)

{com}. gen minority = 0 if dminority=="B"
{txt}(88,325 missing values generated)

{com}. replace minority = 1 if dminority=="A"
{txt}(88,325 real changes made)

{com}. gen gender = 1 if dsex == "B"
{txt}(148,068 missing values generated)

{com}. replace gender = 0 if dsex == "A"
{txt}(148,068 real changes made)

{com}. gen supervisor = 1 if dsuper == "B" 
{txt}(215,332 missing values generated)

{com}. replace supervisor = 0 if dsuper == "A"
{txt}(215,332 real changes made)

{com}. 
. svyset [pweight=postwt]

{txt}Sampling weights:{col 19}{res}postwt
             {txt}VCE:{col 19}{res}linearized
     {txt}Single unit:{col 19}{res}missing
        {txt}Strata 1:{col 19}<one>
 Sampling unit 1:{col 19}<observations>
           FPC 1:{col 19}<zero>
{p2colreset}{...}

{com}. 
. svy linearized : sem (JUSTICE -> DISTRIBUTIVE, ) (JUSTICE -> PROCEDURAL, ) (JUSTICE -> INTERPERSONAL, ) (DISTRIBUTIVE -> q22, ) (DISTRIBUTIVE -> q25, ) (DISTRIBUTIVE -> q33, ) (PROCEDURAL -> q15, ) (PROCEDURAL -> q17, ) (PROCEDURAL -> q37, ) (PROCEDURAL -> q38, )(INTERPERSONAL -> q48, ) (INTERPERSONAL -> q49, ), standardized latent(JUSTICE DISTRIBUTIVE PROCEDURAL INTERPERSONAL ) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 52}{lalign 15:Number of obs}{col 67} = {res}{ralign 9:277,541}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 52}{lalign 15:Population size}{col 67} = {res}{ralign 9:1,028,599}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:277,541}{txt}{col 52}{lalign 15:Design df}{col 67} = {res}{ralign 9:277,540}

{p 0 7}{space 1}{text:( 1)}{space 1} [q22]DISTRIBUTIVE = 1{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} [q15]PROCEDURAL = 1{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} [q48]INTERPERSONAL = 1{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} [DISTRIBUTIVE]JUSTICE = 1{p_end}
{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}  Linearized
{col 1}       Standardized{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural         {col 21}{txt}{c |}
{space 2}{col 3}DISTRIBUTIVE     {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .8485449{col 33}{space 2} .0019044{col 44}{space 1}  445.57{col 53}{space 3}0.000{col 61}{space 4} .8448123{col 74}{space 3} .8522775
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}PROCEDURAL       {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .9853439{col 33}{space 2} .0019534{col 44}{space 1}  504.42{col 53}{space 3}0.000{col 61}{space 4} .9815153{col 74}{space 3} .9891725
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}INTERPERSONAL    {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .7158828{col 33}{space 2} .0022568{col 44}{space 1}  317.22{col 53}{space 3}0.000{col 61}{space 4} .7114596{col 74}{space 3}  .720306
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement        {col 21}{txt}{c |}
{space 2}{col 3}q22              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8467637{col 33}{space 2} .0013961{col 44}{space 1}  606.54{col 53}{space 3}0.000{col 61}{space 4} .8440275{col 74}{space 3}    .8495
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.419754{col 33}{space 2} .0053066{col 44}{space 1}  455.99{col 53}{space 3}0.000{col 61}{space 4} 2.409353{col 74}{space 3} 2.430155
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q25              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8417037{col 33}{space 2} .0014472{col 44}{space 1}  581.59{col 53}{space 3}0.000{col 61}{space 4} .8388671{col 74}{space 3} .8445402
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.547317{col 33}{space 2} .0059663{col 44}{space 1}  426.95{col 53}{space 3}0.000{col 61}{space 4} 2.535623{col 74}{space 3} 2.559011
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q33              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .7245251{col 33}{space 2} .0019185{col 44}{space 1}  377.65{col 53}{space 3}0.000{col 61}{space 4} .7207649{col 74}{space 3} .7282853
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.245168{col 33}{space 2} .0043759{col 44}{space 1}  513.08{col 53}{space 3}0.000{col 61}{space 4} 2.236591{col 74}{space 3} 2.253744
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q15              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .6398305{col 33}{space 2} .0026727{col 44}{space 1}  239.39{col 53}{space 3}0.000{col 61}{space 4}  .634592{col 74}{space 3}  .645069
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.359604{col 33}{space 2} .0103559{col 44}{space 1}  324.41{col 53}{space 3}0.000{col 61}{space 4} 3.339307{col 74}{space 3} 3.379902
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q17              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .7766544{col 33}{space 2} .0018513{col 44}{space 1}  419.52{col 53}{space 3}0.000{col 61}{space 4} .7730259{col 74}{space 3} .7802829
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.022831{col 33}{space 2} .0085825{col 44}{space 1}  352.21{col 53}{space 3}0.000{col 61}{space 4} 3.006009{col 74}{space 3} 3.039652
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q37              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .8377901{col 33}{space 2} .0016075{col 44}{space 1}  521.18{col 53}{space 3}0.000{col 61}{space 4} .8346395{col 74}{space 3} .8409407
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.780344{col 33}{space 2} .0072505{col 44}{space 1}  383.47{col 53}{space 3}0.000{col 61}{space 4} 2.766133{col 74}{space 3} 2.794554
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q38              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .8220392{col 33}{space 2} .0017888{col 44}{space 1}  459.55{col 53}{space 3}0.000{col 61}{space 4} .8185332{col 74}{space 3} .8255452
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.366728{col 33}{space 2} .0103302{col 44}{space 1}  325.91{col 53}{space 3}0.000{col 61}{space 4} 3.346481{col 74}{space 3} 3.386975
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q48              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2}  .942004{col 33}{space 2} .0012138{col 44}{space 1}  776.07{col 53}{space 3}0.000{col 61}{space 4} .9396249{col 74}{space 3}  .944383
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.822907{col 33}{space 2} .0124728{col 44}{space 1}  306.50{col 53}{space 3}0.000{col 61}{space 4}  3.79846{col 74}{space 3} 3.847353
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q49              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2} .9196335{col 33}{space 2} .0013137{col 44}{space 1}  700.03{col 53}{space 3}0.000{col 61}{space 4} .9170586{col 74}{space 3} .9222083
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 4.188508{col 33}{space 2} .0150524{col 44}{space 1}  278.26{col 53}{space 3}0.000{col 61}{space 4} 4.159006{col 74}{space 3} 4.218011
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}var(e.q22){c |}{col 21}{res}{space 2} .2829912{col 33}{space 2} .0023643{col 61}{space 4}  .278395{col 74}{space 3} .2876633
{txt}{space 10}var(e.q25){c |}{col 21}{res}{space 2} .2915349{col 33}{space 2} .0024363{col 61}{space 4} .2867988{col 74}{space 3} .2963493
{txt}{space 10}var(e.q33){c |}{col 21}{res}{space 2} .4750634{col 33}{space 2}   .00278{col 61}{space 4} .4696458{col 74}{space 3} .4805435
{txt}{space 10}var(e.q15){c |}{col 21}{res}{space 2} .5906169{col 33}{space 2} .0034202{col 61}{space 4} .5839513{col 74}{space 3} .5973586
{txt}{space 10}var(e.q17){c |}{col 21}{res}{space 2} .3968079{col 33}{space 2} .0028756{col 61}{space 4} .3912117{col 74}{space 3} .4024843
{txt}{space 10}var(e.q37){c |}{col 21}{res}{space 2} .2981078{col 33}{space 2} .0026935{col 61}{space 4} .2928751{col 74}{space 3} .3034339
{txt}{space 10}var(e.q38){c |}{col 21}{res}{space 2} .3242515{col 33}{space 2} .0029409{col 61}{space 4} .3185383{col 74}{space 3} .3300672
{txt}{space 10}var(e.q48){c |}{col 21}{res}{space 2} .1126285{col 33}{space 2} .0022868{col 61}{space 4} .1082344{col 74}{space 3} .1172011
{txt}{space 10}var(e.q49){c |}{col 21}{res}{space 2} .1542743{col 33}{space 2} .0024163{col 61}{space 4} .1496104{col 74}{space 3} .1590836
{txt}{space 1}var(e.DISTRIBUTIVE){c |}{col 21}{res}{space 2} .2799716{col 33}{space 2}  .003232{col 61}{space 4} .2737081{col 74}{space 3} .2863784
{txt}{space 3}var(e.PROCEDURAL){c |}{col 21}{res}{space 2} .0290974{col 33}{space 2} .0038496{col 61}{space 4} .0224513{col 74}{space 3}  .037711
{txt}var(e.INTERPERSONAL){c |}{col 21}{res}{space 2} .4875118{col 33}{space 2} .0032312{col 61}{space 4} .4812198{col 74}{space 3} .4938861
{txt}{space 8}var(JUSTICE){c |}{col 21}{res}{space 2}        1{col 33}{space 2}        .{col 61}{space 4}        .{col 74}{space 3}        .
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.038}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.974}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. 
. predict justice, latent(JUSTICE)
{res}{txt}
{com}. 
. svy linearized : sem (DIVERSITY -> q34, ) (DIVERSITY -> q45, ) (DIVERSITY -> q55, ), standardized latent(DIVERSITY) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 52}{lalign 15:Number of obs}{col 67} = {res}{ralign 9:277,541}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 52}{lalign 15:Population size}{col 67} = {res}{ralign 9:1,028,599}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:277,541}{txt}{col 52}{lalign 15:Design df}{col 67} = {res}{ralign 9:277,540}

{p 0 7}{space 1}{text:( 1)}{space 1} [q34]DIVERSITY = 1{p_end}
{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 15}{c |}{col 27}  Linearized
{col 1} Standardized{col 15}{c |} Coefficient{col 27}  std. err.{col 39}      t{col 47}   P>|t|{col 55}     [95% con{col 68}f. interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement  {col 15}{txt}{c |}
{space 2}{col 3}q34        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .6795039{col 27}{space 2} .0028646{col 38}{space 1}  237.21{col 47}{space 3}0.000{col 55}{space 4} .6738894{col 68}{space 3} .6851185
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.387285{col 27}{space 2} .0096814{col 38}{space 1}  349.88{col 47}{space 3}0.000{col 55}{space 4}  3.36831{col 68}{space 3} 3.406261
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q45        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .7737836{col 27}{space 2} .0025414{col 38}{space 1}  304.47{col 47}{space 3}0.000{col 55}{space 4} .7688025{col 68}{space 3} .7787647
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.633022{col 27}{space 2}  .011139{col 38}{space 1}  326.15{col 47}{space 3}0.000{col 55}{space 4}  3.61119{col 68}{space 3} 3.654855
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q55        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .8203074{col 27}{space 2} .0024564{col 38}{space 1}  333.94{col 47}{space 3}0.000{col 55}{space 4} .8154929{col 68}{space 3} .8251219
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.564385{col 27}{space 2}   .01101{col 38}{space 1}  323.74{col 47}{space 3}0.000{col 55}{space 4} 3.542806{col 68}{space 3} 3.585965
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}var(e.q34){c |}{col 15}{res}{space 2} .5382744{col 27}{space 2}  .003893{col 55}{space 4}  .530698{col 68}{space 3}  .545959
{txt}{space 4}var(e.q45){c |}{col 15}{res}{space 2} .4012589{col 27}{space 2}  .003933{col 55}{space 4} .3936239{col 68}{space 3}  .409042
{txt}{space 4}var(e.q55){c |}{col 15}{res}{space 2} .3270958{col 27}{space 2} .0040301{col 55}{space 4} .3192916{col 68}{space 3} .3350907
{txt}var(DIVERSITY){c |}{col 15}{res}{space 2}        1{col 27}{space 2}        .{col 55}{space 4}        .{col 68}{space 3}        .
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.000}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.815}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. 
. predict diversity, latent(DIVERSITY)
{res}{txt}
{com}. 
. keep if agency =="AM" | agency =="IB" | agency =="FQ"| agency =="ED" | agency =="DN" | agency =="HU" | agency =="ST" | agency =="EP"  | agency =="EE"| agency =="FC" | agency =="DR" | agency =="FT" | agency =="GS" | agency =="NQ" | agency =="NN" | agency =="CU" | agency =="SN" | agency =="NL" | agency =="NF" | agency =="NU" | agency =="OM" | agency =="BG" | agency =="RR" | agency =="SE" | agency =="SB" | agency =="SZ" | level1 =="DD34" | level1 =="DD10" | level1 =="DD63" | level1 =="DD35" | level1 =="DD04" | level1 =="DD07" | level1 =="DD27" | level1 =="DD26" | level1 =="DD60" | level1 =="AG25" | level1 =="CM03" | level1 =="CM06" | level1 =="CM08" | level1 =="CM09" | level1 =="CM14" | level1 =="HE02" | level1 =="HE04" | level1 =="HE05" | level1 =="HE06" | level1 =="HE07" | level1 =="HE08" | level1 =="HE09" | level1 =="HE10" | level1 =="HE12" |level1 =="HS04" | level1 =="HS05" | level1 =="HS14" | level1 =="HS01" | level1 =="HS03" | level1 =="HS02" | level1 =="HS06" | level1 =="HS12" | level1 =="HS10" | level1 =="DJ15" | level1 =="DJ03" | level1 =="DJEA" | level1 =="DJ09" | level1 =="DJ02" | level1 =="DJ08" | level1 =="DJ11" | level1 =="DL03" | level1 =="DL02" | level1 =="DL10" | level1 =="DL09" | level1 =="DL04" | level1 =="DL06" | level1 =="DL05" | level1 =="DL11" | agency =="AF" | agency =="AR" | level1 =="IN03" | level1 =="IN01" | level1 =="IN02" | level1 =="IN07" | level1 =="IN05" | level1 =="IN06" | level1 =="IN14" | agency =="NV" | level1 =="TRAI" | level1 =="TR91" | level1 =="TRFD" | level1 =="TR93" | level1 =="TRAJ" | level1 =="TRTG" | level1 =="TRAD" | level1 =="TD03" | level1 =="TD04" | level1 =="VA03" | level1 =="VA02" | level1 =="DD01"
{txt}(45,462 observations deleted)

{com}. 
. svy linearized : sem (JUSTICE -> DISTRIBUTIVE, ) (JUSTICE -> PROCEDURAL, ) (JUSTICE -> INTERPERSONAL, ) (DISTRIBUTIVE -> q22, ) (DISTRIBUTIVE -> q25, ) (DISTRIBUTIVE -> q33, ) (PROCEDURAL -> q15, ) (PROCEDURAL -> q17, ) (PROCEDURAL -> q37, ) (PROCEDURAL -> q38, )(INTERPERSONAL -> q48, ) (INTERPERSONAL -> q49, ), standardized latent(JUSTICE DISTRIBUTIVE PROCEDURAL INTERPERSONAL ) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 51}{lalign 15:Number of obs}{col 66} = {res}{ralign 10:232,079}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 51}{lalign 15:Population size}{col 66} = {res}{ralign 10:946,345.68}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:232,079}{txt}{col 51}{lalign 15:Design df}{col 66} = {res}{ralign 10:232,078}

{p 0 7}{space 1}{text:( 1)}{space 1} [q22]DISTRIBUTIVE = 1{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} [q15]PROCEDURAL = 1{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} [q48]INTERPERSONAL = 1{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} [DISTRIBUTIVE]JUSTICE = 1{p_end}
{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}  Linearized
{col 1}       Standardized{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural         {col 21}{txt}{c |}
{space 2}{col 3}DISTRIBUTIVE     {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .8500898{col 33}{space 2} .0020253{col 44}{space 1}  419.73{col 53}{space 3}0.000{col 61}{space 4} .8461202{col 74}{space 3} .8540593
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}PROCEDURAL       {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .9852959{col 33}{space 2} .0020658{col 44}{space 1}  476.94{col 53}{space 3}0.000{col 61}{space 4} .9812469{col 74}{space 3} .9893449
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}INTERPERSONAL    {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .7176701{col 33}{space 2} .0023951{col 44}{space 1}  299.64{col 53}{space 3}0.000{col 61}{space 4} .7129757{col 74}{space 3} .7223645
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement        {col 21}{txt}{c |}
{space 2}{col 3}q22              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8476158{col 33}{space 2} .0014791{col 44}{space 1}  573.07{col 53}{space 3}0.000{col 61}{space 4} .8447168{col 74}{space 3} .8505148
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.406312{col 33}{space 2} .0056185{col 44}{space 1}  428.29{col 53}{space 3}0.000{col 61}{space 4}   2.3953{col 74}{space 3} 2.417324
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q25              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8432689{col 33}{space 2} .0015363{col 44}{space 1}  548.88{col 53}{space 3}0.000{col 61}{space 4} .8402577{col 74}{space 3} .8462801
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.531941{col 33}{space 2} .0063111{col 44}{space 1}  401.19{col 53}{space 3}0.000{col 61}{space 4} 2.519571{col 74}{space 3}  2.54431
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q33              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .7244327{col 33}{space 2} .0020507{col 44}{space 1}  353.26{col 53}{space 3}0.000{col 61}{space 4} .7204134{col 74}{space 3} .7284521
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.236792{col 33}{space 2} .0046582{col 44}{space 1}  480.18{col 53}{space 3}0.000{col 61}{space 4} 2.227662{col 74}{space 3} 2.245922
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q15              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .6401699{col 33}{space 2} .0028256{col 44}{space 1}  226.56{col 53}{space 3}0.000{col 61}{space 4} .6346318{col 74}{space 3} .6457079
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.346152{col 33}{space 2} .0109825{col 44}{space 1}  304.68{col 53}{space 3}0.000{col 61}{space 4} 3.324626{col 74}{space 3} 3.367677
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q17              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .7777243{col 33}{space 2} .0019546{col 44}{space 1}  397.89{col 53}{space 3}0.000{col 61}{space 4} .7738932{col 74}{space 3} .7815553
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.010592{col 33}{space 2} .0091181{col 44}{space 1}  330.18{col 53}{space 3}0.000{col 61}{space 4} 2.992721{col 74}{space 3} 3.028464
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q37              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .8383865{col 33}{space 2}  .001701{col 44}{space 1}  492.88{col 53}{space 3}0.000{col 61}{space 4} .8350526{col 74}{space 3} .8417204
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.760376{col 33}{space 2} .0076354{col 44}{space 1}  361.52{col 53}{space 3}0.000{col 61}{space 4} 2.745411{col 74}{space 3} 2.775342
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q38              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .8226432{col 33}{space 2} .0018964{col 44}{space 1}  433.80{col 53}{space 3}0.000{col 61}{space 4} .8189263{col 74}{space 3}   .82636
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.345155{col 33}{space 2} .0108773{col 44}{space 1}  307.53{col 53}{space 3}0.000{col 61}{space 4} 3.323836{col 74}{space 3} 3.366474
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q48              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2} .9421248{col 33}{space 2} .0012917{col 44}{space 1}  729.39{col 53}{space 3}0.000{col 61}{space 4} .9395932{col 74}{space 3} .9446564
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.801503{col 33}{space 2} .0131574{col 44}{space 1}  288.93{col 53}{space 3}0.000{col 61}{space 4} 3.775714{col 74}{space 3} 3.827291
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q49              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2} .9192985{col 33}{space 2} .0013925{col 44}{space 1}  660.16{col 53}{space 3}0.000{col 61}{space 4} .9165691{col 74}{space 3} .9220278
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 4.167892{col 33}{space 2} .0159035{col 44}{space 1}  262.07{col 53}{space 3}0.000{col 61}{space 4} 4.136722{col 74}{space 3} 4.199062
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}var(e.q22){c |}{col 21}{res}{space 2} .2815474{col 33}{space 2} .0025074{col 61}{space 4} .2766756{col 74}{space 3}  .286505
{txt}{space 10}var(e.q25){c |}{col 21}{res}{space 2} .2888976{col 33}{space 2} .0025911{col 61}{space 4} .2838635{col 74}{space 3}  .294021
{txt}{space 10}var(e.q33){c |}{col 21}{res}{space 2} .4751972{col 33}{space 2} .0029712{col 61}{space 4} .4694093{col 74}{space 3} .4810565
{txt}{space 10}var(e.q15){c |}{col 21}{res}{space 2} .5901826{col 33}{space 2} .0036177{col 61}{space 4} .5831344{col 74}{space 3} .5973159
{txt}{space 10}var(e.q17){c |}{col 21}{res}{space 2} .3951449{col 33}{space 2} .0030403{col 61}{space 4} .3892306{col 74}{space 3} .4011491
{txt}{space 10}var(e.q37){c |}{col 21}{res}{space 2}  .297108{col 33}{space 2} .0028522{col 61}{space 4} .2915701{col 74}{space 3} .3027511
{txt}{space 10}var(e.q38){c |}{col 21}{res}{space 2} .3232582{col 33}{space 2} .0031201{col 61}{space 4} .3172005{col 74}{space 3} .3294317
{txt}{space 10}var(e.q48){c |}{col 21}{res}{space 2} .1124009{col 33}{space 2} .0024338{col 61}{space 4} .1077304{col 74}{space 3} .1172738
{txt}{space 10}var(e.q49){c |}{col 21}{res}{space 2} .1548903{col 33}{space 2} .0025603{col 61}{space 4} .1499526{col 74}{space 3} .1599907
{txt}{space 1}var(e.DISTRIBUTIVE){c |}{col 21}{res}{space 2} .2773474{col 33}{space 2} .0034434{col 61}{space 4} .2706799{col 74}{space 3} .2841792
{txt}{space 3}var(e.PROCEDURAL){c |}{col 21}{res}{space 2}  .029192{col 33}{space 2} .0040709{col 61}{space 4} .0222105{col 74}{space 3} .0383679
{txt}var(e.INTERPERSONAL){c |}{col 21}{res}{space 2} .4849496{col 33}{space 2} .0034378{col 61}{space 4} .4782582{col 74}{space 3} .4917347
{txt}{space 8}var(JUSTICE){c |}{col 21}{res}{space 2}        1{col 33}{space 2}        .{col 61}{space 4}        .{col 74}{space 3}        .
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.038}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.974}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. 
. predict justice2, latent (JUSTICE)
{res}{txt}
{com}. 
. svy linearized : sem (DIVERSITY -> q34, ) (DIVERSITY -> q45, ) (DIVERSITY -> q55, ), standardized latent(DIVERSITY) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 51}{lalign 15:Number of obs}{col 66} = {res}{ralign 10:232,079}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 51}{lalign 15:Population size}{col 66} = {res}{ralign 10:946,345.68}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:232,079}{txt}{col 51}{lalign 15:Design df}{col 66} = {res}{ralign 10:232,078}

{p 0 7}{space 1}{text:( 1)}{space 1} [q34]DIVERSITY = 1{p_end}
{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 15}{c |}{col 27}  Linearized
{col 1} Standardized{col 15}{c |} Coefficient{col 27}  std. err.{col 39}      t{col 47}   P>|t|{col 55}     [95% con{col 68}f. interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement  {col 15}{txt}{c |}
{space 2}{col 3}q34        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .6804814{col 27}{space 2} .0030438{col 38}{space 1}  223.56{col 47}{space 3}0.000{col 55}{space 4} .6745156{col 68}{space 3} .6864471
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.367762{col 27}{space 2} .0102151{col 38}{space 1}  329.69{col 47}{space 3}0.000{col 55}{space 4} 3.347741{col 68}{space 3} 3.387784
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q45        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .7755075{col 27}{space 2} .0026939{col 38}{space 1}  287.87{col 47}{space 3}0.000{col 55}{space 4} .7702275{col 68}{space 3} .7807876
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.605998{col 27}{space 2} .0116984{col 38}{space 1}  308.25{col 47}{space 3}0.000{col 55}{space 4}  3.58307{col 68}{space 3} 3.628927
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q55        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .8226129{col 27}{space 2} .0025966{col 38}{space 1}  316.80{col 47}{space 3}0.000{col 55}{space 4} .8175236{col 68}{space 3} .8277022
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.540941{col 27}{space 2} .0116184{col 38}{space 1}  304.77{col 47}{space 3}0.000{col 55}{space 4} 3.518169{col 68}{space 3} 3.563713
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}var(e.q34){c |}{col 15}{res}{space 2} .5369451{col 27}{space 2} .0041425{col 55}{space 4}  .528887{col 68}{space 3} .5451259
{txt}{space 4}var(e.q45){c |}{col 15}{res}{space 2} .3985881{col 27}{space 2} .0041783{col 55}{space 4} .3904822{col 68}{space 3} .4068622
{txt}{space 4}var(e.q55){c |}{col 15}{res}{space 2}  .323308{col 27}{space 2}  .004272{col 55}{space 4} .3150425{col 68}{space 3} .3317905
{txt}var(DIVERSITY){c |}{col 15}{res}{space 2}        1{col 27}{space 2}        .{col 55}{space 4}        .{col 68}{space 3}        .
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.000}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.817}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. 
. predict diversity2, latent (DIVERSITY)
{res}{txt}
{com}. 
. sum justice, detail

                   {txt}Factor score (JUSTICE)
{hline 61}
      Percentiles      Smallest
 1%    {res}-2.211892      -2.329841
{txt} 5%    {res}-1.633581      -2.329841
{txt}10%    {res}-1.143651      -2.329841       {txt}Obs         {res}    232,079
{txt}25%    {res} -.390456      -2.329841       {txt}Sum of wgt. {res}    232,079

{txt}50%    {res} .2207956                      {txt}Mean          {res}   .06968
                        {txt}Largest       Std. dev.     {res}  .831264
{txt}75%    {res} .6544698       1.275642
{txt}90%    {res} 1.087444       1.275642       {txt}Variance      {res} .6909998
{txt}95%    {res} 1.235942       1.275642       {txt}Skewness      {res}-.7752874
{txt}99%    {res} 1.275642       1.275642       {txt}Kurtosis      {res} 3.185337
{txt}
{com}. 
. sum justice2, detail

                   {txt}Factor score (JUSTICE)
{hline 61}
      Percentiles      Smallest
 1%    {res}-2.207883      -2.325556
{txt} 5%    {res}-1.627609      -2.325556
{txt}10%    {res}-1.139287      -2.325556       {txt}Obs         {res}    232,079
{txt}25%    {res}-.3845026      -2.325556       {txt}Sum of wgt. {res}    232,079

{txt}50%    {res} .2275124                      {txt}Mean          {res} .0762261
                        {txt}Largest       Std. dev.     {res} .8321521
{txt}75%    {res} .6611916       1.283947
{txt}90%    {res}  1.09452       1.283947       {txt}Variance      {res} .6924771
{txt}95%    {res} 1.244261       1.283947       {txt}Skewness      {res}-.7747908
{txt}99%    {res} 1.283947       1.283947       {txt}Kurtosis      {res} 3.184473
{txt}
{com}. 
. sum diversity, detail

                  {txt}Factor score (DIVERSITY)
{hline 61}
      Percentiles      Smallest
 1%    {res}-1.977259      -1.977259
{txt} 5%    {res}-1.261403      -1.977259
{txt}10%    {res}-.7853373      -1.977259       {txt}Obs         {res}    232,079
{txt}25%    {res}-.3057562      -1.977259       {txt}Sum of wgt. {res}    232,079

{txt}50%    {res} .1703093                      {txt}Mean          {res} .0466072
                        {txt}Largest       Std. dev.     {res} .6427125
{txt}75%    {res} .4877352       .8861653
{txt}90%    {res} .8861653       .8861653       {txt}Variance      {res} .4130794
{txt}95%    {res} .8861653       .8861653       {txt}Skewness      {res}-.9546325
{txt}99%    {res} .8861653       .8861653       {txt}Kurtosis      {res} 3.903057
{txt}
{com}. 
. sum diversity2, detail

                  {txt}Factor score (DIVERSITY)
{hline 61}
      Percentiles      Smallest
 1%    {res}-1.971182      -1.971182
{txt} 5%    {res}-1.255616      -1.971182
{txt}10%    {res}-.7793185      -1.971182       {txt}Obs         {res}    232,079
{txt}25%    {res}-.3007816      -1.971182       {txt}Sum of wgt. {res}    232,079

{txt}50%    {res} .1755159                      {txt}Mean          {res} .0519259
                        {txt}Largest       Std. dev.     {res} .6425811
{txt}75%    {res} .4939903       .8910818
{txt}90%    {res} .8910818       .8910818       {txt}Variance      {res} .4129105
{txt}95%    {res} .8910818       .8910818       {txt}Skewness      {res}-.9548698
{txt}99%    {res} .8910818       .8910818       {txt}Kurtosis      {res}  3.90289
{txt}
{com}. 
. corr justice justice2
{txt}(obs=232,079)

             {c |}  justice justice2
{hline 13}{c +}{hline 18}
     justice {c |}{res}   1.0000
    {txt}justice2 {c |}{res}   1.0000   1.0000

{txt}
{com}. 
. corr diversity diversity2 
{txt}(obs=232,079)

             {c |} divers~y divers~2
{hline 13}{c +}{hline 18}
   diversity {c |}{res}   1.0000
  {txt}diversity2 {c |}{res}   1.0000   1.0000

{txt}
{com}. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\J.PARK\Dropbox\Discrimination Project_for me\Organizational Diversity\2023 Version_Merging\FINAL\CFA_2017.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 8 Aug 2024, 13:24:43
{txt}{.-}
{smcl}
{txt}{sf}{ul off}